package cqrtplm.dto;

import com.ty.basic.utils.excel.annotation.ExcelModel;
import com.alibaba.excel.annotation.ExcelProperty;
import lombok.Data;
import org.apache.commons.lang3.StringUtils;

@Data
@ExcelModel
public class ImportCategoryAttributeCardDTO {

    @ExcelProperty("卡片编码")
    private String categoryInName;

    @ExcelProperty("卡片名称")
    private String categoryDisName;

    @ExcelProperty("卡片分类")
    private String categoryType;

    @ExcelProperty("属性编码")
    private String attributeInName;

    @ExcelProperty("属性名称")
    private String attributeDisName;

    @ExcelProperty("顺序")
    private String attributeNo;

    @ExcelProperty("默认值")
    private String defaultValue;

    @ExcelProperty("是否拼接")
    private String isSplice;

    @ExcelProperty("枚举值名称")
    private String enumValue;

    @ExcelProperty("枚举值编码")
    private String enumId;

    @ExcelProperty("机型是否隐藏")
    private String isHiddenModelNumber;



    public boolean isRowEmpty() {
        return (StringUtils.isNotBlank(this.categoryInName)
                &&StringUtils.isNotBlank(this.categoryDisName)
                &&StringUtils.isNotBlank(this.attributeInName)
                &&StringUtils.isNotBlank(this.attributeDisName)
                &&StringUtils.isNotBlank(this.attributeNo)
        );
    }
}
